home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2001-079.nasl < prev    next >
Text File  |  2005-01-14  |  6KB  |  187 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2001:079-2
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(14777);
  12.  script_version ("$Revision: 1.1 $");
  13.  
  14.  name["english"] = "MDKSA-2001:079-2: kernel";
  15.  
  16.  script_name(english:name["english"]);
  17.  
  18.  desc["english"] = "
  19. The remote host is missing the patch for the advisory MDKSA-2001:079-2 (kernel).
  20.  
  21.  
  22. Alexander Viro discovered a vulnerability in the devfs implementation that is
  23. shipped with Mandrake Linux 8.1. We are aware of the problem and are currently
  24. working on a solution. As a workaround, until an update becomes available,
  25. please boot with the devfs=nomount option.
  26. Rafal Wojtczuk found a vulnerability in the 2.2.19 and 2.4.11 Linux kernels with
  27. the ptrace code and deeply nested symlinks spending an arbitrary amount of time
  28. in the kernel code. The ptrace vulnerability could be used by local users to
  29. gain root privilege, the symlink vulnerability could result in a local DoS.
  30. There is an additional vulnerability in the kernel's syncookie code which could
  31. potentially allow a remote attacker to guess the cookie and bypass existing
  32. firewall rules. The discovery was found by Manfred Spraul and Andi Kleen.
  33. Update:
  34. The previous advisory was missing the md5sums for the lm_utils packages. The
  35. md5sums are now included in the package list.
  36. NOTE: This update is *not* meant to be done via MandrakeUpdate! You must
  37. download the necessary RPMs and upgrade manually by following these steps:
  38. 1. Type: rpm -ivh kernel-[version].i586.rpm 2. Type: mv
  39. kernel-[version].i586.rpm /tmp 3. Type: rpm -Fvh *.rpm 4a. You may wish to edit
  40. /etc/lilo.conf to ensure a new entry is in place. The new kernel will be the
  41. last entry. Change any options you need to change. You will also want to create
  42. a new entry with the initrd and image directives pointing to the old kernel's
  43. vmlinuz and initrd images so you may also boot from the old images if required.
  44. 4b. PPC users must execute some additional instructions. First edit
  45. /etc/yaboot.conf and add a new entry for the kernel and change any options that
  46. you need to change. You must also create a new initrd image to enable USB
  47. support for keyboards and mice by typing: mkinitrd --with=usb-ohci
  48. /boot/initrd-2.4.8-31.3mdk 2.4.8-31.3mdk 5a. If you use lilo, type: /sbin/lilo
  49. -v 5b. If you use GRUB, type: sh /boot/grub/install.sh 5c. PPC users must type:
  50. /sbin/ybin -v
  51. You may then reboot and use the new kernel and remove the older kernel when you
  52. are comfortable using the upgraded one.
  53.  
  54.  
  55. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2001:079-2
  56. Risk factor : High";
  57.  
  58.  
  59.  
  60.  script_description(english:desc["english"]);
  61.  
  62.  summary["english"] = "Check for the version of the kernel package";
  63.  script_summary(english:summary["english"]);
  64.  
  65.  script_category(ACT_GATHER_INFO);
  66.  
  67.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  68.  family["english"] = "Mandrake Local Security Checks";
  69.  script_family(english:family["english"]);
  70.  
  71.  script_dependencies("ssh_get_info.nasl");
  72.  script_require_keys("Host/Mandrake/rpm-list");
  73.  exit(0);
  74. }
  75.  
  76. include("rpm.inc");
  77. if ( rpm_check( reference:"kernel-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  78. {
  79.  security_hole(0);
  80.  exit(0);
  81. }
  82. if ( rpm_check( reference:"kernel-doc-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  83. {
  84.  security_hole(0);
  85.  exit(0);
  86. }
  87. if ( rpm_check( reference:"kernel-enterprise-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  88. {
  89.  security_hole(0);
  90.  exit(0);
  91. }
  92. if ( rpm_check( reference:"kernel-headers-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  93. {
  94.  security_hole(0);
  95.  exit(0);
  96. }
  97. if ( rpm_check( reference:"kernel-pcmcia-cs-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  98. {
  99.  security_hole(0);
  100.  exit(0);
  101. }
  102. if ( rpm_check( reference:"kernel-smp-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  103. {
  104.  security_hole(0);
  105.  exit(0);
  106. }
  107. if ( rpm_check( reference:"kernel-source-2.4.8-31.2mdk", release:"MDK8.0", yank:"mdk") )
  108. {
  109.  security_hole(0);
  110.  exit(0);
  111. }
  112. if ( rpm_check( reference:"lm_utils-2.4.8_2.6.1-31.2mdk", release:"MDK8.0", yank:"mdk") )
  113. {
  114.  security_hole(0);
  115.  exit(0);
  116. }
  117. if ( rpm_check( reference:"lm_utils-devel-2.4.8_2.6.1-31.2mdk", release:"MDK8.0", yank:"mdk") )
  118. {
  119.  security_hole(0);
  120.  exit(0);
  121. }
  122. if ( rpm_check( reference:"iptables-1.2.4-1.2mdk", release:"MDK8.0", yank:"mdk") )
  123. {
  124.  security_hole(0);
  125.  exit(0);
  126. }
  127. if ( rpm_check( reference:"iptables-ipv6-1.2.4-1.2mdk", release:"MDK8.0", yank:"mdk") )
  128. {
  129.  security_hole(0);
  130.  exit(0);
  131. }
  132. if ( rpm_check( reference:"kernel-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  133. {
  134.  security_hole(0);
  135.  exit(0);
  136. }
  137. if ( rpm_check( reference:"kernel-doc-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  138. {
  139.  security_hole(0);
  140.  exit(0);
  141. }
  142. if ( rpm_check( reference:"kernel-enterprise-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  143. {
  144.  security_hole(0);
  145.  exit(0);
  146. }
  147. if ( rpm_check( reference:"kernel-headers-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  148. {
  149.  security_hole(0);
  150.  exit(0);
  151. }
  152. if ( rpm_check( reference:"kernel-pcmcia-cs-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  153. {
  154.  security_hole(0);
  155.  exit(0);
  156. }
  157. if ( rpm_check( reference:"kernel-smp-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  158. {
  159.  security_hole(0);
  160.  exit(0);
  161. }
  162. if ( rpm_check( reference:"kernel-source-2.4.8-34.1mdk", release:"MDK8.1", yank:"mdk") )
  163. {
  164.  security_hole(0);
  165.  exit(0);
  166. }
  167. if ( rpm_check( reference:"lm_utils-2.4.8_2.6.1-34.1mdk", release:"MDK8.1", yank:"mdk") )
  168. {
  169.  security_hole(0);
  170.  exit(0);
  171. }
  172. if ( rpm_check( reference:"lm_utils-devel-2.4.8_2.6.1-34.1mdk", release:"MDK8.1", yank:"mdk") )
  173. {
  174.  security_hole(0);
  175.  exit(0);
  176. }
  177. if ( rpm_check( reference:"iptables-1.2.4-1.1mdk", release:"MDK8.1", yank:"mdk") )
  178. {
  179.  security_hole(0);
  180.  exit(0);
  181. }
  182. if ( rpm_check( reference:"iptables-ipv6-1.2.4-1.1mdk", release:"MDK8.1", yank:"mdk") )
  183. {
  184.  security_hole(0);
  185.  exit(0);
  186. }
  187.